[MS-DOS] Read command-line parameters to .bat from file
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-06-02T10:18:37Z
Indexed on
2010/06/02
10:34 UTC
Read the original article
Hit count: 161
batch-file
|ms-dos
I have a build.bat file which uses %1 internally... so you might call:
build 1.23
I wanted it to read the parameter from a separate file, so I tried putting "1.23" in version.txt and doing:
build < version.txt
But it doesn't work. Isn't this how piping works? Is what I want possible and if so how?
© Stack Overflow or respective owner